/* Shared Material 3 / Google-style foundations for marketing surfaces. */

.google-material-root {
  --green: #00b28b;
  --green-dark: #008f6f;
  --green-tint: #e6f7f2;

  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --blue-tint: #e8f0fe;

  --yellow: #f9ab00;
  --yellow-tint: #fef7e0;

  --red: #ea4335;
  --red-tint: #fce8e6;

  --purple: #7c4dff;
  --purple-tint: #f3e8fd;

  --text: #202124;
  --text-muted: #5f6368;
  --text-faint: #80868b;
  --border: #dadce0;
  --border-soft: #e8eaed;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-2: 0 1px 2px 0 rgba(60,64,67,0.30), 0 2px 6px 2px rgba(60,64,67,0.15);
  --shadow-3: 0 4px 8px 3px rgba(60,64,67,0.15), 0 1px 3px 0 rgba(60,64,67,0.30);

  --ease: cubic-bezier(0.2, 0, 0, 1);

  --md-sys-color-primary: #00b28b;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-outline: #dadce0;
  --md-sys-color-outline-variant: #e8eaed;
  --md-sys-color-on-surface: #202124;

  --md-filled-button-container-shape: 999px;
  --md-outlined-button-container-shape: 999px;
  --md-text-button-container-shape: 999px;
  --md-elevated-button-container-shape: 999px;
  --md-filled-tonal-button-container-shape: 999px;

  --md-filled-button-label-text-font: 'Google Sans', 'Google Sans Text', 'DM Sans', sans-serif;
  --md-outlined-button-label-text-font: 'Google Sans', 'Google Sans Text', 'DM Sans', sans-serif;
  --md-text-button-label-text-font: 'Google Sans', 'Google Sans Text', 'DM Sans', sans-serif;
  --md-outlined-button-outline-color: #dadce0;

  font-family: 'Google Sans Text', 'Google Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.google-material-root *,
.google-material-root *::before,
.google-material-root *::after {
  box-sizing: border-box;
}

.google-material-root h1,
.google-material-root h2,
.google-material-root h3,
.google-material-root h4,
.google-material-root h5,
.google-material-root p,
.google-material-root ul,
.google-material-root ol,
.google-material-root figure,
.google-material-root blockquote,
.google-material-root dl,
.google-material-root dd {
  margin: 0;
  padding: 0;
}

.google-material-root h1,
.google-material-root h2,
.google-material-root h3,
.google-material-root h4 {
  font-family: 'Google Sans', 'Google Sans Text', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.google-material-root a {
  color: inherit;
  text-decoration: none;
}

.google-material-root img,
.google-material-root svg {
  display: block;
  max-width: 100%;
}

.google-material-root .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  line-height: 1;
}

/* Static legal surfaces share the marketing Google/Material tokens. */
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body.legal-page { margin: 0; }
.legal-page { --legal-link: #0b57d0; }
.legal-container { width: min(1180px, 100%); margin: 0 auto; padding: 0 40px; }
.legal-page a:focus-visible, .legal-page summary:focus-visible, .legal-page [tabindex="0"]:focus-visible { outline: 3px solid var(--legal-link); outline-offset: 5px; border-radius: 4px; }
.legal-page .legal-skip { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--legal-link); color: white; border-radius: 24px; }
.legal-page .legal-skip:focus { top: 10px; }
.legal-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--border-soft); }
.legal-header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: flex; align-items: center; gap: 22px; }
.legal-brand span { border-left: 1px solid var(--border); padding-left: 22px; color: var(--text-muted); font-size: 20px; font-family: 'Google Sans', sans-serif; }
.legal-home { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: var(--radius-pill); }
.legal-home:hover { background: var(--bg-alt); }
.legal-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.legal-tabs { display: flex; gap: 28px; }
.legal-tabs a { padding: 15px 4px 16px; color: var(--text-muted); font-size: 14px; font-weight: 500; position: relative; white-space: nowrap; }
.legal-tabs a:hover { color: var(--legal-link); }
.legal-tabs a[aria-current] { color: var(--legal-link); }
.legal-tabs a[aria-current]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--legal-link); border-radius: 3px 3px 0 0; }
.legal-hero { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-top: 66px; padding-bottom: 64px; }
.legal-hero-copy { max-width: 710px; }
.legal-page .legal-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.legal-eyebrow a:hover { text-decoration: underline; }
.legal-page h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 400; letter-spacing: -.035em; line-height: 1.13; }
.legal-page .legal-intro { font-size: 19px; line-height: 1.6; color: var(--text-muted); margin-top: 20px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 27px; color: var(--text-muted); font-size: 13px; }
.legal-badge { display: inline-flex; align-items: center; background: #e6f4ea; color: #137333; border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.legal-badge-archived { background: #f1f3f4; color: #5f6368; }
.legal-hero-art { width: 176px; height: 176px; flex: 0 0 176px; position: relative; display: grid; place-items: center; background: #e6f4ea; color: #188038; border-radius: 48px; transform: rotate(-6deg); margin-right: 24px; }
.legal-hero-art > .legal-icon { width: 82px; height: 82px; transform: rotate(6deg); stroke-width: 1.2; }
.legal-hero-art span { width: 24px; height: 24px; border-radius: 50%; background: #fbbc04; position: absolute; right: -12px; top: 18px; }
.legal-hero-art span:last-child { width: 16px; height: 16px; background: #4285f4; left: -19px; top: auto; bottom: 22px; }
.legal-hero-art-terms { background: #e8f0fe; color: #1967d2; }
.legal-hero-art-archive { background: #fef7e0; color: #b06000; }
.legal-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
.legal-sidebar { position: sticky; top: 155px; max-height: calc(100vh - 180px); overflow-y: auto; padding: 0 12px 8px 0; scrollbar-width: thin; }
.legal-sidebar nav > p { font-size: 13px; font-weight: 500; padding: 0 12px 13px; }
.legal-sidebar ol, .legal-mobile-contents ol { list-style: none; counter-reset: legal-section; }
.legal-sidebar li a { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.45; padding: 8px 12px; border-radius: 8px; }
.legal-sidebar li a:hover, .legal-sidebar li a:focus { background: #e8f0fe; color: var(--legal-link); }
.legal-reading { min-width: 0; }
.legal-page .legal-scope { border-bottom: 1px solid var(--border-soft); padding-bottom: 22px; margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.legal-prose { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-page .legal-prose p { margin: 0 0 20px; }
.legal-page .legal-prose h2 { font-size: 25px; font-weight: 400; line-height: 1.4; letter-spacing: -.015em; margin: 50px 0 20px; padding-top: 28px; border-top: 1px solid var(--border-soft); scroll-margin-top: 16px; }
.legal-prose h2:target { color: var(--legal-link); }
.legal-page .legal-prose ul, .legal-page .legal-prose ol { margin: 0 0 24px; padding-left: 24px; }
.legal-prose li { margin-bottom: 10px; padding-left: 5px; }
.legal-prose strong { font-weight: 700; }
.legal-page .legal-prose a, .legal-page .legal-notice a, .legal-page .legal-archive-contact a { color: var(--legal-link); text-decoration: underline; text-underline-offset: 3px; }
.legal-table-scroll { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--border); border-radius: 16px; }
.legal-prose table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; text-align: left; }
.legal-prose th { background: #f1f5f9; color: #3c4043; font-weight: 500; }
.legal-prose th, .legal-prose td { padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--border-soft); min-width: 145px; }
.legal-prose td:first-child { font-weight: 500; width: 27%; }
.legal-prose tr:last-child td { border-bottom: 0; }
.legal-prose tbody tr:nth-child(even) { background: #fafbfc; }
.legal-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border-soft); font-size: 13px; }
.legal-page .legal-document-actions a { display: inline-flex; align-items: center; gap: 8px; color: var(--legal-link); }
.legal-help { background: #f0f4f9; padding: 32px; border-radius: 24px; margin-top: 42px; display: flex; align-items: flex-start; gap: 20px; }
.legal-help-icon { padding: 12px; border-radius: 50%; background: #d3e3fd; color: var(--legal-link); }
.legal-page .legal-help h2 { font-size: 22px; font-weight: 400; margin-bottom: 8px; line-height: 1.35; }
.legal-help p { font-size: 14px; color: var(--text-muted); }
.legal-page .legal-help a { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--legal-link); font-size: 14px; font-weight: 500; }
.legal-mobile-contents { display: none; }
.legal-notice { display: flex; align-items: flex-start; gap: 14px; padding: 22px; background: #fef7e0; border-radius: 16px; font-size: 14px; margin-bottom: 28px; }
.legal-notice > .legal-icon { color: #b06000; }
.legal-page .legal-notice p { margin-top: 6px; }
.legal-archive-content { max-width: 1000px; padding-bottom: 80px; }
.legal-page .legal-archive-note { color: var(--text-muted); font-size: 15px; max-width: 680px; margin-bottom: 36px; }
.legal-version { padding: 32px; border: 1px solid var(--border); border-radius: 24px; margin-bottom: 24px; }
.legal-version-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.legal-page .legal-version-heading h2 { font-size: 28px; font-weight: 400; }
.legal-version-heading p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.legal-page .legal-version-description { color: var(--text-muted); font-size: 14px; margin: 18px 0 24px; }
.legal-version-documents { display: grid; gap: 12px; }
.legal-document-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 16px; background: #f8fafd; transition: background .15s; }
.legal-document-card:hover { background: #e8f0fe; }
.legal-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: #e8f0fe; color: var(--legal-link); border-radius: 14px; }
.legal-document-card > span:nth-child(2) { flex: 1; }
.legal-document-card strong { display: block; font-family: 'Google Sans', sans-serif; font-weight: 500; font-size: 18px; }
.legal-document-card strong + span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.legal-document-card > .legal-icon { color: var(--legal-link); width: 20px; height: 20px; flex-basis: 20px; }
.legal-archive-contact { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 14px; margin-top: 32px; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border-soft); padding-top: 28px; padding-bottom: 28px; font-size: 12px; color: var(--text-muted); }
.legal-footer > div { display: flex; align-items: center; gap: 20px; }
.legal-footer svg { width: 90px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-footer a:hover, .legal-document-actions a:hover, .legal-help a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .legal-container { padding-left: 28px; padding-right: 28px; }
  .legal-hero { gap: 32px; }
  .legal-hero-art { width: 132px; height: 132px; flex-basis: 132px; border-radius: 36px; margin-right: 12px; }
  .legal-hero-art > .legal-icon { width: 64px; height: 64px; }
  .legal-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 28px; }
  .legal-footer { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 126px; }
  .legal-container { padding-left: 22px; padding-right: 22px; }
  .legal-header-inner { height: 62px; }
  .legal-brand { gap: 14px; }
  .legal-brand svg { width: 94px; }
  .legal-brand span { font-size: 16px; padding-left: 14px; }
  .legal-home { display: none; }
  .legal-tabs { gap: 16px; }
  .legal-tabs a { font-size: 13px; padding-top: 12px; padding-bottom: 13px; }
  .legal-hero { padding-top: 38px; padding-bottom: 34px; }
  .legal-hero-art { display: none; }
  .legal-page .legal-intro { font-size: 17px; margin-top: 16px; }
  .legal-meta { margin-top: 22px; gap: 12px; }
  .legal-layout { display: block; padding-bottom: 44px; }
  .legal-sidebar { display: none; }
  .legal-mobile-contents { display: block; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 28px; padding: 0 18px; }
  .legal-mobile-contents summary { padding: 16px 0; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
  .legal-mobile-contents summary::-webkit-details-marker { display: none; }
  .legal-mobile-contents summary span { float: right; }
  .legal-mobile-contents[open] summary span { transform: rotate(180deg); }
  .legal-mobile-contents nav { padding-bottom: 12px; }
  .legal-mobile-contents a { display: block; padding: 9px 0; font-size: 13px; color: var(--legal-link); }
  .legal-prose { font-size: 15px; line-height: 1.8; }
  .legal-page .legal-prose h2 { font-size: 23px; margin-top: 36px; padding-top: 24px; }
  .legal-help { padding: 24px; gap: 14px; }
  .legal-help-icon { display: none; }
  .legal-version { padding: 22px; border-radius: 20px; }
  .legal-document-card { padding: 16px; gap: 12px; }
  .legal-card-icon { width: 36px; height: 40px; flex-basis: 36px; border-radius: 10px; }
  .legal-document-card strong { font-size: 16px; }
  .legal-document-card > .legal-icon { display: none; }
  .legal-archive-content { padding-bottom: 44px; }
  .legal-footer nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  html { scroll-padding-top: 0; }
  .legal-header, .legal-sidebar, .legal-mobile-contents, .legal-hero-art, .legal-document-actions, .legal-help, .legal-footer, .legal-skip { display: none; }
  .legal-container { max-width: none; width: 100%; padding: 0; }
  .legal-hero { padding: 0 0 24px; }
  .legal-layout { display: block; }
  .legal-page h1 { font-size: 30px; }
  .legal-prose { font-size: 10pt; }
  .legal-page .legal-prose h2 { font-size: 16pt; break-after: avoid; }
  .legal-prose table { font-size: 9pt; }
  .legal-table-scroll { overflow: visible; }
  .legal-prose th, .legal-prose td { min-width: 0; padding: 8px; }
  .legal-prose tr, .legal-version, .legal-notice { break-inside: avoid; }
}
