:root {
      --accent-sage: #dfe9df;
      --bg: #ffffff;
      --surface: #ffffff;
      --surface-green: #e8f7ea;
      --text: #213327;
      --muted: #555;
      --line: rgba(17,17,17,0.08);
      --primary: #3fae49;
      --primary-hover: #2f8a3a;
      --container: 1240px;
      --radius: 14px;
      --shadow: 0 4px 20px rgba(17,17,17,0.06);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
    a { color: var(--primary); text-decoration: none; }
    a:hover { color: var(--primary-hover); text-decoration: underline; }
    .container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
    .topbar { background: rgba(255,255,255,0.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
    .topbar-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
    .logo-placeholder { width: 150px; height: 48px; border: 2px dashed rgba(63,174,73,0.35); border-radius: 12px; background: rgba(63,174,73,0.04); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.78rem; font-weight: 600; flex-shrink: 0; }
    .top-nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 600; color: #1f2e22; margin-left: 8px; flex: 1; }
    .top-nav a { color: inherit; transition: color 0.18s; text-decoration: none; }
    .top-nav a:hover { color: var(--primary); }
    .header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.95rem; transition: transform 0.18s, background-color 0.18s; text-decoration: none; }
    .btn-primary { background: var(--primary); color: white; }
    .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); text-decoration: none; }
    .btn-danger { background: #e54848; color: white; }
    .btn-danger:hover { background: #c93d3d; transform: translateY(-1px); }
    .category-row { border-top: 1px solid var(--line); background: rgba(63,174,73,0.16); padding: 4px 0; }
    .main-nav-row { display: flex; align-items: center; padding: 6px 0; }
    .main-categories { display: flex; align-items: center; font-weight: 700; }
    .main-categories a { white-space: nowrap; font-size: 1rem; color: #2f3a31; transition: color 0.18s; text-decoration: none; }
    .main-categories a + a { position: relative; margin-left: 26px; padding-left: 26px; }
    .main-categories a + a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 18px; background: rgba(47,58,49,0.2); }
    .main-categories a:hover { color: var(--primary); }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; margin-left: auto; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-nav { display: flex; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: white; box-shadow: -4px 0 24px rgba(0,0,0,0.12); z-index: 200; padding: 80px 28px 32px; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform 0.3s; visibility: hidden; }
    .mobile-nav.open { transform: translateX(0); visibility: visible; }
    .mobile-nav a { font-size: 1.05rem; font-weight: 700; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); display: block; text-decoration: none; }
    .mobile-nav a:last-child { border-bottom: none; }
    .mobile-nav a:hover { color: var(--primary); }
    .mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); line-height: 1; padding: 4px; }
    .mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 199; }
    .mobile-nav-overlay.open { display: block; }

    main { padding: 0 0 80px; }
    .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); padding: 20px 0 0; flex-wrap: wrap; }
    .breadcrumb a { color: var(--muted); }
    .breadcrumb a:hover { color: var(--primary); }
    .breadcrumb .sep { color: #595959; }

    .legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; margin-top: 32px; }
    .legal-toc { position: sticky; top: 90px; }
    .legal-toc-title { font-size: 0.75rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
    .legal-toc-links { display: flex; flex-direction: column; gap: 2px; }
    .legal-toc-link { font-size: 0.86rem; color: var(--muted); padding: 6px 8px; border-radius: 6px; transition: background 0.15s, color 0.15s; text-decoration: none; }
    .legal-toc-link:hover { background: var(--surface-green); color: var(--primary); text-decoration: none; }
    .legal-toc-updated { font-size: 0.78rem; color: var(--muted); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

    .legal-content { max-width: 760px; }
    .legal-content h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; line-height: 1.1; }
    .legal-content .subtitle { font-size: 0.93rem; color: var(--muted); margin: 0 0 32px; }
    .legal-content h2 { margin: 40px 0 12px; font-size: 1.15rem; font-weight: 800; padding-top: 8px; border-top: 2px solid var(--line); }
    .legal-content h2:first-of-type { border-top: none; margin-top: 0; }
    .legal-content h3 { margin: 20px 0 8px; font-size: 1rem; font-weight: 700; }
    .legal-content p { margin: 0 0 14px; font-size: 0.95rem; color: var(--text); line-height: 1.7; }
    .legal-content ul, .legal-content ol { margin: 0 0 14px; padding-left: 22px; }
    .legal-content li { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 4px; }
    .info-box { background: var(--surface-green); border: 1px solid rgba(63,174,73,0.2); border-radius: 10px; padding: 16px 20px; margin: 16px 0; font-size: 0.92rem; color: var(--text); line-height: 1.65; }
    .info-box strong { color: var(--primary); }
    .warning-box { background: #fff8e1; border: 1px solid #f0c040; border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-size: 0.9rem; color: #7a5c00; }

    footer { background: #cdbba6; color: #2c241d; margin-top: 60px; padding: 54px 0 36px; }
    .footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; gap: 30px; }
    .footer-title { font-size: 1rem; font-weight: 800; margin: 0 0 16px; color: #2c241d; text-align: center; }
    .footer-list { display: grid; gap: 10px; text-align: center; }
    .footer-list a { font-size: 0.93rem; color: #2c241d; transition: color 0.18s; text-decoration: none; }
    .footer-list a:hover { color: #1f2e22; }
    .footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(44,36,29,0.15); color: #2c241d; font-size: 0.9rem; text-align: center; }

    @media (max-width: 768px) {
      .top-nav { display: none; }
      .hamburger { display: flex; }
      .category-row { overflow-x: auto; scrollbar-width: none; }
      .category-row::-webkit-scrollbar { display: none; }
      .legal-layout { grid-template-columns: 1fr; gap: 24px; }
      .legal-toc { position: static; background: var(--surface-green); border-radius: 10px; padding: 16px 20px; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    }
    @media (max-width: 480px) {
      .container { width: calc(100% - 24px); }
      .footer-grid { grid-template-columns: 1fr; }
      main { padding: 0 0 56px; }
    }
