/* Layout halaman legal — public/css/legal.css */
/* Digunakan oleh resources/views/layouts/legal.blade.php */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --linen: #f6f1e8;
            --linen-dark: #ebe4d6;
            --paper: #fffdf9;
            --ink: #1a2f38;
            --ink-soft: #4a6570;
            --sea: #1565C0;
            --sea-deep: #0e4d8f;
            --sea-mist: #d4e8f7;
            --sage: #5a9e8f;
            --coral: #e0634a;
            --coral-soft: #fce8e3;
            --radius: 18px;
            --font-display: 'Fraunces', Georgia, serif;
            --font-body: 'DM Sans', system-ui, sans-serif;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-body);
            background: var(--linen);
            color: var(--ink);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 9999;
            opacity: .45;
        }

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

        .wrap {
            width: min(1140px, 92vw);
            margin-inline: auto;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 0;
            background: rgba(246, 241, 232, .88);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(26, 47, 56, .06);
        }

        .topbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .logo {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 1.65rem;
            letter-spacing: -.03em;
            color: var(--ink);
        }

        .logo em {
            font-style: normal;
            color: var(--sea);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            list-style: none;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-links a {
            font-size: .86rem;
            font-weight: 500;
            color: var(--ink-soft);
            transition: color .2s;
        }

        .nav-links a:hover,
        .nav-links a.is-active { color: var(--sea); }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .45rem;
            font-family: var(--font-body);
            font-weight: 600;
            font-size: .88rem;
            border-radius: 999px;
            padding: .6rem 1.25rem;
            border: none;
            cursor: pointer;
            transition: transform .15s, box-shadow .15s;
        }

        .btn:active { transform: scale(.98); }

        .btn-primary {
            background: var(--coral);
            color: #fff;
            box-shadow: 0 4px 0 #c44f38, 0 8px 24px rgba(224, 99, 74, .28);
        }

        .btn-ghost {
            background: transparent;
            color: var(--ink);
            border: 1.5px solid rgba(26, 47, 56, .18);
        }

        .btn-ghost:hover {
            border-color: var(--sea);
            color: var(--sea);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.4rem;
            color: var(--ink);
            cursor: pointer;
            line-height: 1;
            padding: .25rem;
        }

        main {
            flex: 1;
            padding: 2.5rem 0 4.5rem;
        }

        .legal-shell {
            width: min(760px, 92vw);
            margin-inline: auto;
        }

        .legal-kicker {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            font-size: .78rem;
            font-weight: 600;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--sea);
            margin-bottom: .75rem;
        }

        .legal-hero {
            margin-bottom: 1.75rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(26, 47, 56, .08);
        }

        .legal-hero h1 {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: clamp(1.85rem, 4vw, 2.45rem);
            letter-spacing: -.03em;
            line-height: 1.15;
            margin-bottom: .65rem;
        }

        .legal-hero .lead {
            color: var(--ink-soft);
            font-size: 1.02rem;
            max-width: 38rem;
        }

        .meta-card {
            display: grid;
            gap: .55rem;
            background: var(--paper);
            border: 1px solid rgba(26, 47, 56, .08);
            border-radius: var(--radius);
            padding: 1.15rem 1.25rem;
            margin-bottom: 1.75rem;
            box-shadow: 0 10px 28px rgba(26, 47, 56, .04);
        }

        .meta-card p {
            font-size: .92rem;
            color: var(--ink-soft);
            display: grid;
            grid-template-columns: 8.5rem 1fr;
            gap: .5rem;
        }

        .meta-card strong {
            color: var(--ink);
            font-weight: 600;
        }

        .badge-date {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            background: var(--sea-mist);
            color: var(--sea-deep);
            font-size: .82rem;
            font-weight: 600;
            padding: .4rem .9rem;
            border-radius: 999px;
            margin-bottom: 1.5rem;
        }

        .legal-body {
            background: var(--paper);
            border: 1px solid rgba(26, 47, 56, .08);
            border-radius: calc(var(--radius) + 4px);
            padding: clamp(1.35rem, 3vw, 2.25rem);
            box-shadow: 0 14px 40px rgba(26, 47, 56, .05);
        }

        .legal-body > p:first-of-type {
            font-size: 1.02rem;
            color: var(--ink-soft);
        }

        .legal-body h2 {
            font-family: var(--font-display);
            font-size: 1.28rem;
            font-weight: 700;
            letter-spacing: -.02em;
            margin: 2rem 0 .85rem;
            color: var(--ink);
            scroll-margin-top: 5rem;
        }

        .legal-body h2:first-child { margin-top: 0; }

        .legal-body h3 {
            font-size: 1.02rem;
            font-weight: 650;
            margin: 1.35rem 0 .55rem;
            color: var(--sea-deep);
        }

        .legal-body p {
            margin-bottom: .9rem;
            color: var(--ink-soft);
            font-size: .98rem;
        }

        .legal-body ul,
        .legal-body ol {
            margin: 0 0 1rem 1.2rem;
            color: var(--ink-soft);
            font-size: .98rem;
        }

        .legal-body li { margin-bottom: .4rem; }

        .legal-body li strong,
        .legal-body p strong {
            color: var(--ink);
            font-weight: 600;
        }

        .legal-body a {
            color: var(--sea);
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .legal-body a:hover { color: var(--sea-deep); }

        .callout {
            background: linear-gradient(135deg, rgba(21, 101, 192, .06), rgba(90, 158, 143, .08));
            border: 1px solid rgba(21, 101, 192, .14);
            border-left: 4px solid var(--sea);
            border-radius: 14px;
            padding: 1.15rem 1.25rem;
            margin: 1.25rem 0 1.5rem;
        }

        .callout.warning {
            background: var(--coral-soft);
            border-color: rgba(224, 99, 74, .25);
            border-left-color: var(--coral);
        }

        .callout h3 {
            margin: 0 0 .5rem;
            color: var(--ink);
            font-size: 1rem;
        }

        .callout p:last-child,
        .callout ol:last-child,
        .callout ul:last-child { margin-bottom: 0; }

        .toc {
            background: var(--linen);
            border: 1px dashed rgba(26, 47, 56, .12);
            border-radius: 14px;
            padding: 1rem 1.15rem;
            margin: 0 0 1.5rem;
        }

        .toc p {
            font-size: .8rem;
            font-weight: 700;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: var(--ink);
            margin-bottom: .55rem;
        }

        .toc ol {
            margin: 0 0 0 1.1rem;
            font-size: .9rem;
        }

        .toc a {
            color: var(--ink-soft);
            text-decoration: none;
            font-weight: 500;
        }

        .toc a:hover { color: var(--sea); }

        .contact-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem;
            padding: 1rem 1.15rem;
            background: var(--sea-mist);
            border-radius: 14px;
            max-width: 28rem;
        }

        .contact-card .icon {
            width: 2.6rem;
            height: 2.6rem;
            border-radius: 50%;
            background: var(--sea);
            color: #fff;
            display: grid;
            place-items: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .contact-card span {
            display: block;
            font-size: .78rem;
            color: var(--ink-soft);
        }

        .contact-card a {
            font-weight: 700;
            color: var(--sea-deep);
            text-decoration: none;
        }

        .legal-nav {
            display: flex;
            flex-wrap: wrap;
            gap: .65rem;
            margin-top: 1.75rem;
            padding-top: 1.25rem;
            border-top: 1px solid rgba(26, 47, 56, .08);
        }

        .legal-nav a {
            font-size: .84rem;
            font-weight: 600;
            color: var(--ink-soft);
            padding: .4rem .85rem;
            border-radius: 999px;
            border: 1px solid rgba(26, 47, 56, .1);
            background: var(--paper);
            text-decoration: none;
        }

        .legal-nav a:hover {
            color: var(--sea);
            border-color: var(--sea-mist);
        }

        .legal-nav a.is-active {
            color: var(--sea-deep);
            background: var(--sea-mist);
            border-color: transparent;
        }

        footer {
            padding: 1.75rem 0 2rem;
            border-top: 1px solid rgba(26, 47, 56, .08);
            text-align: center;
            color: var(--ink-soft);
            font-size: .88rem;
        }

        footer a {
            color: var(--sea);
            font-weight: 600;
        }

        footer .foot-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .35rem 1rem;
            margin-bottom: .65rem;
        }

        footer .foot-links a {
            font-size: .84rem;
            font-weight: 500;
            color: var(--ink-soft);
            text-decoration: none;
        }

        footer .foot-links a:hover { color: var(--sea); }

        @media (max-width: 720px) {
            .nav-links { display: none; }
            .nav-links.open {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--linen);
                padding: 1rem 4vw 1.25rem;
                border-bottom: 1px solid rgba(26, 47, 56, .08);
                gap: .85rem;
            }
            .topbar-inner { position: relative; }
            .menu-toggle { display: block; }
            .topbar .btn-primary { display: none; }
            .meta-card p {
                grid-template-columns: 1fr;
                gap: .15rem;
            }
        }
