@layer reset, tokens, base, layout, components, utilities, animations;

@layer reset {
  :where(html, body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table, th, td, fieldset, button, input, select, textarea) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :where(div, section, article, aside, header, footer, main, nav, details, summary, label, span, a, code, pre, svg) {
    box-sizing: border-box;
  }

  :where(ul, ol) {
    list-style: none;
  }

  :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
  }

  :where(table) {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
  }
}

@layer tokens {
  :root {
    color-scheme: light;

    /* Studio Plock Official Brand Palette */
    --tinta: #1e1b3a;
    --coral: #ff5a4e;
    --violeta: #7b61ff;
    --amarelo: #ffc23c;
    --turquesa: #14b8a6;

    /* Light Theme Canvas & Surfaces */
    --canvas-bg: #f8f7fc;
    --canvas-surface: #ffffff;
    --canvas-subtle: #f1eff7;
    --canvas-elevated: #ffffff;

    --border-subtle: #e8e6f0;
    --border-medium: #d4d0e2;
    --border-strong: #1e1b3a;

    --text-primary: #1e1b3a;
    --text-secondary: #535070;
    --text-muted: #7a7796;
    --text-faint: #a29fb8;

    /* Dark Console / Brand Block Tokens */
    --dark-bg: #1e1b3a;
    --dark-surface: #27234a;
    --dark-border: #3b3666;
    --dark-text: #ffffff;
    --dark-muted: #a6a2c5;

    /* Typography */
    --font-brand: 'Unbounded', -apple-system, sans-serif;
    --font-sans: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    /* Geometry & Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;

    --measure-prose: 68ch;
    --container-max: 74rem;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Elevation Shadows (neutral, offset) */
    --shadow-subtle: 0 1px 3px rgba(30, 27, 58, 0.05), 0 1px 2px rgba(30, 27, 58, 0.03);
    --shadow-card: 0 4px 16px -2px rgba(30, 27, 58, 0.06), 0 2px 6px -1px rgba(30, 27, 58, 0.03);
    --shadow-elevated: 0 12px 32px -4px rgba(30, 27, 58, 0.08), 0 4px 12px -2px rgba(30, 27, 58, 0.04);
  }

  @media (forced-colors: active) {
    :root {
      --border-subtle: CanvasText;
      --border-strong: CanvasText;
      --tinta: CanvasText;
    }
  }
}

@layer base {
  html {
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    accent-color: var(--violeta);
  }

  body {
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  ::selection {
    background-color: rgba(123, 97, 255, 0.2);
    color: var(--tinta);
  }

  :focus-visible {
    outline: 2px solid var(--violeta);
    outline-offset: 3px;
  }

  /* Custom Clean Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--canvas-bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
  }

  h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }

  h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
  }

  h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 700;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
  }

  h4 {
    font-size: 1rem;
    font-weight: 600;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  p {
    max-inline-size: var(--measure-prose);
  }
}

@layer layout {
  .container {
    inline-size: 100%;
    max-inline-size: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  @media (min-width: 48rem) {
    .container {
      padding-inline: 2.5rem;
    }
  }

  .site-main {
    flex: 1 0 auto;
  }

  .section-pad {
    padding-block: var(--space-7);
  }

  @media (min-width: 48rem) {
    .section-pad {
      padding-block: var(--space-8);
    }
  }
}

@layer components {
  /* Site Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(248, 247, 252, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 200ms ease, border-color 200ms ease;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-block-size: 4.5rem;
    gap: var(--space-4);
  }

  /* Brand Logo Link */
  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: opacity 160ms ease;
  }

  .brand-link:hover {
    opacity: 0.9;
  }

  .brand-mark-svg {
    inline-size: 2.35rem;
    block-size: 2.5rem;
    flex-shrink: 0;
  }

  .brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--font-brand);
  }

  .brand-studio {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--violeta);
    letter-spacing: 0.08em;
    text-transform: lowercase;
  }

  .brand-plock {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--tinta);
    letter-spacing: -0.02em;
  }

  .brand-excl {
    color: var(--coral);
  }

  /* Navigation Bar */
  .nav-menu {
    display: none;
    align-items: center;
    gap: var(--space-5);
  }

  @media (min-width: 56rem) {
    .nav-menu {
      display: flex;
    }
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 150ms ease;
    padding-block: 0.25rem;
    position: relative;
  }

  .nav-link:hover {
    color: var(--tinta);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  /* Segmented Language Switcher */
  .lang-switcher {
    display: inline-flex;
    align-items: center;
    background-color: var(--canvas-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
  }

  .lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    line-height: 1;
    letter-spacing: 0.03em;
    transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  }

  .lang-btn:hover {
    color: var(--tinta);
  }

  .lang-btn[aria-pressed="true"] {
    background-color: var(--canvas-surface);
    color: var(--tinta);
    box-shadow: 0 1px 4px rgba(30, 27, 58, 0.08);
  }

  /* Hero Section */
  .hero-section {
    padding-block-start: clamp(2.5rem, 6vw, 4.5rem);
    padding-block-end: clamp(3rem, 7vw, 5.5rem);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }

  @media (min-width: 60rem) {
    .hero-grid {
      grid-template-columns: 1.15fr 0.95fr;
      gap: 3.5rem;
    }
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-title {
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--tinta);
    letter-spacing: -0.03em;
  }

  .hero-desc {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-secondary);
  }

  .hero-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    padding-block-start: 0.5rem;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.72rem 1.45rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .btn-primary {
    background-color: var(--tinta);
    color: #ffffff;
    border: 1px solid var(--tinta);
    box-shadow: 0 4px 14px rgba(30, 27, 58, 0.12);
  }

  .btn-primary:hover {
    background-color: #2e2a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 27, 58, 0.16);
    color: #ffffff;
  }

  .btn-secondary {
    background-color: var(--canvas-surface);
    color: var(--tinta);
    border: 1px solid var(--border-medium);
  }

  .btn-secondary:hover {
    background-color: var(--canvas-subtle);
    border-color: var(--tinta);
    transform: translateY(-2px);
  }

  .btn-icon {
    inline-size: 1.15rem;
    block-size: 1.15rem;
    flex-shrink: 0;
  }

  /* Trust Indicators */
  .hero-trust-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  .trust-dot {
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background-color: var(--turquesa);
    flex-shrink: 0;
  }

  /* Hero Brand Card — Clean, sober Studio Plock identity presentation */
  .hero-brand-card {
    background: radial-gradient(circle at 50% 28%, rgba(123, 97, 255, 0.14) 0%, rgba(30, 27, 58, 0) 65%), var(--dark-bg);
    color: var(--dark-text);
    border-radius: clamp(1.75rem, 3.5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 2.5rem;
    box-shadow: 0 24px 60px -16px rgba(30, 27, 58, 0.28), 0 0 0 1px rgba(30, 27, 58, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease;
  }

  .hero-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px -16px rgba(30, 27, 58, 0.34), 0 0 0 1px rgba(123, 97, 255, 0.22);
    border-color: rgba(123, 97, 255, 0.3);
  }

  .hero-brand-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
  }

  .hero-brand-mark {
    inline-size: clamp(6.5rem, 13vw, 8.5rem);
    block-size: auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-brand-card:hover .hero-brand-mark {
    transform: scale(1.035);
  }

  .hero-mark-pop {
    transform-origin: 93px 53px;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-brand-card:hover .hero-mark-pop {
    transform: rotate(10deg) scale(1.04);
  }

  .hero-brand-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .hero-brand-studio {
    font-family: var(--font-brand);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #7B61FF;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .hero-brand-plock {
    font-family: var(--font-brand);
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .hero-brand-bang {
    color: #FF5A4E;
    display: inline-block;
  }

  /* Section Headings */
  .section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-block-end: 2.75rem;
  }

  .section-title {
    font-family: var(--font-brand);
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: var(--tinta);
    letter-spacing: -0.02em;
  }

  .section-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
  }

  .section-standards {
    background-color: var(--canvas-subtle);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 1.5rem;
  }

  /* Product / Apps Grid */
  .apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  @media (min-width: 48rem) {
    .apps-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .app-card {
    background-color: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-subtle);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .app-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-card);
  }

  .app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .app-card-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .app-icon-squircle {
    inline-size: 3.2rem;
    block-size: 3.2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .app-icon-1 {
    background: linear-gradient(135deg, #1e1b3a 0%, #2e2a56 100%);
    color: #ffffff;
  }

  .app-icon-2 {
    background: linear-gradient(135deg, #ff5a4e 0%, #d83b30 100%);
    color: #ffffff;
  }

  .app-icon-3 {
    background: linear-gradient(135deg, #7b61ff 0%, #5d42e6 100%);
    color: #ffffff;
  }

  .app-icon-4 {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
  }

  .app-icon-svg {
    inline-size: 1.65rem;
    block-size: 1.65rem;
  }

  .app-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .app-name {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--tinta);
  }

  .app-category {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .app-badge-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
  }

  .app-badge-review {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
  }

  .app-card-desc {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
    flex-grow: 1;
  }

  .app-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    background-color: var(--canvas-subtle);
    color: var(--text-secondary);
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
  }

  .app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }

  .app-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--violeta);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 140ms ease;
  }

  .app-link:hover {
    color: #5d42e6;
  }

  .app-policy-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  /* Principles & Architecture */
  .pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  @media (min-width: 54rem) {
    .pillars-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .pillar-card {
    background-color: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-subtle);
  }

  .pillar-icon-box {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--canvas-subtle);
    color: var(--tinta);
  }

  .pillar-title {
    font-family: var(--font-brand);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--tinta);
  }

  .pillar-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
  }

  /* Google Play Compliance Hub */
  .compliance-hub-card {
    background-color: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-card);
  }

  .compliance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-block-start: 2rem;
  }

  @media (min-width: 48rem) {
    .compliance-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 64rem) {
    .compliance-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .compliance-link-card {
    background-color: var(--canvas-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
  }

  .compliance-link-card:hover {
    transform: translateY(-2px);
    border-color: var(--violeta);
    background-color: var(--canvas-surface);
  }

  .compliance-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--tinta);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .compliance-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .compliance-note-bar {
    margin-block-start: 2rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--canvas-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .compliance-note-text {
    font-size: 0.86rem;
    color: var(--text-secondary);
  }

  .compliance-contact-link {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--violeta);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Site Footer */
  .site-footer {
    background-color: var(--tinta);
    color: #ffffff;
    border-top: 1px solid #2e2a52;
    padding-block: var(--space-7);
    margin-block-start: auto;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
  }

  @media (min-width: 52rem) {
    .footer-top {
      flex-direction: row;
      align-items: flex-start;
    }
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-inline-size: 26rem;
  }

  .footer-wordmark {
    font-family: var(--font-brand);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .footer-wordmark .studio {
    color: #a794ff;
    font-size: 0.75rem;
    display: block;
    letter-spacing: 0.08em;
  }

  .footer-desc {
    font-size: 0.88rem;
    color: #a6a2c5;
    line-height: 1.55;
  }

  .footer-links-group {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-col-title {
    font-family: var(--font-brand);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .footer-link {
    font-size: 0.86rem;
    color: #a6a2c5;
    transition: color 140ms ease;
  }

  .footer-link:hover {
    color: #ffffff;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #332e5c;
    padding-top: 2rem;
    margin-top: 1.5rem;
    justify-content: space-between;
    align-items: center;
  }

  @media (min-width: 48rem) {
    .footer-bottom {
      flex-direction: row;
    }
  }

  .footer-copy {
    font-size: 0.82rem;
    color: #8b87ab;
  }

  /* Legal Documentation Pages (.legal-prose, .doc-grid, .doc-toc) */
  .doc-header {
    padding-top: 2rem;
    margin-bottom: 2.5rem;
  }

  .doc-header h1 {
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--tinta);
    margin-bottom: 0.75rem;
  }

  .lead-paragraph {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
  }

  .doc-meta-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .doc-meta-row a {
    color: var(--violeta);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 4rem;
  }

  @media (min-width: 58rem) {
    .doc-grid {
      grid-template-columns: 17rem 1fr;
    }
  }

  .doc-toc {
    background-color: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    position: sticky;
    top: 5.5rem;
    box-shadow: var(--shadow-subtle);
  }

  .doc-toc-title {
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tinta);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
  }

  .doc-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .doc-toc-list a {
    font-size: 0.86rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 140ms ease;
  }

  .doc-toc-list a:hover {
    color: var(--violeta);
  }

  .legal-prose, .policy-article {
    background-color: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: clamp(1.75rem, 3.5vw, 3rem);
    box-shadow: var(--shadow-subtle);
  }

  .legal-prose section, .policy-article section {
    margin-bottom: 2.5rem;
  }

  .legal-prose h2, .policy-article h2 {
    font-family: var(--font-brand);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--tinta);
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
  }

  .legal-prose h3, .policy-article h3 {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--tinta);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .legal-prose p, .policy-article p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-inline-size: 100%;
  }

  .legal-prose ul, .legal-prose ol, .policy-article ul, .policy-article ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
  }

  .legal-prose ul, .policy-article ul {
    list-style: disc;
  }

  .legal-prose ol, .policy-article ol {
    list-style: decimal;
  }

  .legal-prose li, .policy-article li {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
  }

  .legal-prose a, .policy-article a {
    color: var(--violeta);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .legal-prose code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    background-color: var(--canvas-subtle);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
  }

  .policy-header {
    background-color: var(--canvas-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding-block: var(--space-6);
  }

  .policy-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-block-end: 1rem;
  }

  .policy-breadcrumbs a {
    color: var(--violeta);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .policy-box {
    background-color: var(--canvas-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    margin-block: 1.5rem;
  }
}

@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

@layer animations {
  @media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}
