/* Ailane legal and policy pages: shared type and phone layout (AILANE-CC-BRIEF-AMD492-LEGAL-RELEASE-001, part B;
   AMD-492). Loaded last in <head> on /terms/, /privacy/, /tribunal-privacy/, /dpa/, /msa/, /aup/, /beta-terms/,
   /complaints/, /ai-governance/, /feature-matrix/ and /attributions/. CSS only: nothing here changes the text
   between the ailane-legal-text markers. The shared navigation and footer keep their own styles
   (/assets/css/site-nav.css, /assets/css/site-footer.css), which outrank these selectors. */

/* B-7 type: body in DM Sans, headings in DM Serif Display (/assets/fonts/gf-d855aaf27a.css and
   /assets/fonts/dm-serif-display-headings.css, as the home page loads them). */
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; letter-spacing: 0; }

/* B-7 grey text: nothing darker than #94A3B8 (/attributions/ used #64748B). */
:root { --text-muted: var(--ac-94a3b8, #94A3B8); }

/* Long words, addresses and links wrap instead of widening the page. */
main, .content, .layout, .page-header, .container, .fm-content { overflow-wrap: break-word; }
.layout > * { min-width: 0; }

@media (max-width: 600px) {
  /* B-5 tables: each scrolls sideways inside its own box. The Feature Matrix tables already sit in
     .fm-table-wrap, which scrolls. */
  table:not(.fm-table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* B-7 targets: standalone links and buttons at least 44 px high. Links inside running text are inline
     and keep the line height of the sentence. */
  .sidebar-nav a { display: flex; align-items: center; min-height: 44px; }
  .content button, .content input[type="submit"], .dp-submit { min-height: 44px; }
}

/* B-6 Feature Matrix tier tabs on a phone (/assets/js/page/feature-matrix-tabs.js adds the tab bar and
   sets data-fm-tier on the tier table; without the script the table scrolls inside its box). */
.fm-tabs { display: none; }
@media (max-width: 600px) {
  .fm-tabs { display: flex; gap: 6px; margin: 1.5rem 0 -1rem; }
  .fm-tabs button {
    flex: 1 1 0; min-height: 48px; padding: 8px 6px; border-radius: 8px;
    border: 1px solid var(--grey-border, var(--ac-2a3a5c, #2A3A5C)); background: transparent; color: var(--body-text, var(--ac-cbd5e1, #CBD5E1));
    font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  }
  .fm-tabs button[aria-selected="true"] { background: var(--teal, var(--ac-0ea5e9, #0EA5E9)); border-color: var(--teal, var(--ac-0ea5e9, #0EA5E9)); color: var(--ac-02121e, #02121E); }
  .fm-tabs button:focus-visible { outline: 2px solid var(--ac-22d3ee, #22d3ee); outline-offset: 2px; }
  .fm-table[data-fm-tier] { min-width: 0; }
  .fm-table[data-fm-tier] tbody th { width: 50%; }
  .fm-table[data-fm-tier="1"] tr > :is(:nth-child(3), :nth-child(4)),
  .fm-table[data-fm-tier="2"] tr > :is(:nth-child(2), :nth-child(4)),
  .fm-table[data-fm-tier="3"] tr > :is(:nth-child(2), :nth-child(3)) { display: none; }
}
