/* =============================================================
   legal.css — Legal/help pages within main app layout
   Variables come from app.css :root (--bg, --ink, --card, --accent etc.)
   ============================================================= */

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    pointer-events: none;
}
.art-strip {
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 40px;
    position: relative;
    z-index: 1;
}
.as-cat {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}
.as-cat::before {
    content: "";
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}
.as-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.as-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}
.page-header-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 44px;
    position: relative;
    z-index: 1;
}
.ph-eyebrow {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ph-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--accent);
}
.ph-title {
    font-family: "DM Serif Display", serif;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 0.95;
    letter-spacing: -2px;
    color: #f4f1ec;
    margin-bottom: 14px;
}
.ph-title em {
    font-style: italic;
    color: var(--accent);
}
.ph-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    max-width: 560px;
}
.ph-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}
.ph-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* ── Content Layout ───────────────────────────────────────── */
.lgl-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}
.page-body {
    padding: 52px 0 80px;
}
.page-body > h2 {
    font-family: "DM Serif Display", serif;
    font-size: 26px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 44px 0 14px;
    color: var(--ink);
}
.page-body > h2 em {
    font-style: italic;
}
.page-body > h3 {
    font-family: "DM Serif Display", serif;
    font-size: 18px;
    letter-spacing: -0.3px;
    margin: 24px 0 8px;
    color: var(--ink);
}
.page-body > p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 18px;
}
.page-body > p strong {
    color: var(--ink);
    font-weight: 600;
}
.page-body > p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-body > p a:hover {
    opacity: 0.75;
}
.page-intro {
    font-size: 17px;
    line-height: 1.78;
    color: var(--ink);
    font-weight: 300;
    margin-bottom: 20px;
}
.page-hr {
    height: 1px;
    background: var(--border);
    margin: 36px 0;
    border: none;
}

/* ── Pull Quote ───────────────────────────────────────────── */
.pull-quote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    background: var(--card);
    border-radius: 0 6px 6px 0;
    margin: 32px 0;
    font-family: "DM Serif Display", serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
}

/* ── Callout Boxes ────────────────────────────────────────── */
.callout {
    border-radius: 8px;
    padding: 18px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.callout.info {
    background: rgba(43, 91, 255, 0.07);
    border: 1px solid rgba(43, 91, 255, 0.2);
}
.callout.tip {
    background: rgba(26, 122, 74, 0.07);
    border: 1px solid rgba(26, 122, 74, 0.2);
}
.callout.warn {
    background: rgba(180, 83, 9, 0.07);
    border: 1px solid rgba(180, 83, 9, 0.2);
}
.callout-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    overflow: hidden;
}
.callout-icon svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
}
.callout.info .callout-icon {
    background: rgba(43, 91, 255, 0.14);
}
.callout.tip .callout-icon {
    background: rgba(26, 122, 74, 0.12);
}
.callout.warn .callout-icon {
    background: rgba(180, 83, 9, 0.12);
}
.callout.info .callout-icon svg {
    stroke: var(--accent2);
}
.callout.tip .callout-icon svg {
    stroke: var(--green);
}
.callout.warn .callout-icon svg {
    stroke: var(--amber);
}
.callout-body {
    flex: 1;
}
.callout-body .callout-title {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.callout.info .callout-title {
    color: var(--accent2);
}
.callout.tip .callout-title {
    color: var(--green);
}
.callout.warn .callout-title {
    color: var(--amber);
}
.callout-body p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}
.callout-body a {
    color: var(--accent2);
    text-decoration: underline;
}

/* ── Tables ───────────────────────────────────────────────── */
.cookie-table,
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 13.5px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cookie-table th,
.payment-table th {
    background: var(--ink);
    color: #f4f1ec;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
}
.cookie-table td,
.payment-table td {
    padding: 12px 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    line-height: 1.65;
    vertical-align: top;
}
.cookie-table tr:last-child td,
.payment-table tr:last-child td {
    border-bottom: none;
}
.cookie-table tr:nth-child(even) td,
.payment-table tr:nth-child(even) td {
    background: rgba(26, 26, 24, 0.02);
}

/* ── FAQ Items ────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--border) !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.faq-item:first-of-type {
    border-top: 1px solid var(--border) !important;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 !important;
    background: none !important;
    border: none !important;
    font-family: "Outfit", sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    gap: 12px;
    cursor: none !important;
    transition: color 0.15s;
}
.faq-q:hover {
    color: var(--accent) !important;
    background: none !important;
}
.faq-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    overflow: hidden;
}
.faq-icon svg {
    width: 14px !important;
    height: 14px !important;
    stroke: var(--muted) !important;
    transition:
        transform 0.25s,
        stroke 0.15s;
    transform: none !important;
}
.faq-item.open .faq-icon {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}
.faq-item.open .faq-icon svg {
    stroke: #fff !important;
    transform: rotate(180deg) !important;
}
.faq-a {
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 0.38s ease !important;
    padding: 0 !important;
}
.faq-item.open .faq-a {
    max-height: 600px !important;
}
.faq-a-inner {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
}
.faq-a-inner a {
    color: var(--accent);
    text-decoration: underline;
}
.faq-a-inner strong {
    color: var(--ink);
    font-weight: 600;
}

/* ── Terms Sections ───────────────────────────────────────── */
.terms-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 4px 16px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.terms-section:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 14px rgba(26, 26, 24, 0.08);
}
.ts-num {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    grid-row: 1 / span 2;
    padding-top: 3px;
    line-height: 1.5;
}
.ts-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
}
.ts-body {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}
.ts-body strong {
    color: var(--ink);
}

/* ── Data Grid (privacy policy) ───────────────────────────── */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.data-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 22px 20px;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.data-card:hover {
    border-color: var(--accent);
    box-shadow: 0 3px 16px rgba(26, 26, 24, 0.1);
}
.dc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(212, 65, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.dc-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: var(--accent);
    flex-shrink: 0;
}
.dc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
}
.dc-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* ── Contact Cards ────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.22s,
        box-shadow 0.22s;
}
.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 26, 24, 0.11);
}
.cc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cc-icon svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}
.cc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cc-title {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.cc-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cc-resp {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

/* ── Rights List ──────────────────────────────────────────── */
.rights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}
.right-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.18s;
}
.right-item:hover {
    border-color: var(--accent);
}
.ri-num {
    font-family: "DM Mono", monospace;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    min-width: 38px;
    line-height: 1;
    padding-top: 2px;
}
.ri-body {
    flex: 1;
    min-width: 0;
}
.ri-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}
.ri-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

/* ── Page Tags ────────────────────────────────────────────── */
.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.page-tag {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    text-decoration: none;
    transition:
        border-color 0.18s,
        color 0.18s;
}
.page-tag:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ── Help Sections (inside .lgl-layout > .page-body) ────── */
.help-section {
}
.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.hs-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.hs-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #fff;
    fill: none;
    flex-shrink: 0;
    max-width: 22px;
    max-height: 22px;
}
/* Section icon color variants */
.hs-icon.hs-blue {
    background: var(--accent2);
}
.hs-icon.hs-green {
    background: var(--green);
}
.hs-icon.hs-amber {
    background: var(--amber);
}
.hs-icon.hs-dark {
    background: #2a2a2a;
}
.hs-title {
    font-family: "DM Serif Display", serif;
    font-size: 24px !important;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 0 !important;
    line-height: 1.1;
}
.hs-title em {
    font-style: italic;
    color: var(--accent);
}

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
    display: flex;
    flex-direction: column;
}
.ps-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.ps-item:last-child {
    border-bottom: none;
}
.ps-num {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(212, 65, 11, 0.08);
    border: 1.5px solid rgba(212, 65, 11, 0.18);
    border-radius: 8px;
    width: 44px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}
.ps-body {
    flex: 1;
    min-width: 0;
}
.ps-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
}
.ps-desc {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--muted);
}
.ps-desc strong {
    color: var(--ink);
}

/* ── Fade Up Animation ────────────────────────────────────── */
.fu {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}
.fu.in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-header-body {
        padding: 32px 24px 28px;
    }
    .art-strip {
        padding: 9px 24px;
    }
    .lgl-layout {
        padding: 0 24px;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .ph-title {
        letter-spacing: -1px;
        font-size: clamp(26px, 8vw, 40px);
    }
    .ph-sub {
        font-size: 14.5px;
    }
    .ph-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ph-meta-dot {
        display: none;
    }
    .as-meta {
        display: none;
    }
    .terms-section {
        grid-template-columns: 1fr;
    }
    .ts-num {
        grid-row: auto;
    }
    .page-body {
        padding: 32px 0 52px;
    }
    .page-body > h2 {
        font-size: 22px;
        margin: 28px 0 10px;
    }
    .lgl-layout {
        padding: 0 16px;
    }
    .art-strip {
        padding: 9px 16px;
    }
    .page-header-body {
        padding: 24px 16px 20px;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .hs-title {
        font-size: 18px !important;
    }
    .help-section {
        margin-bottom: 40px;
        padding-bottom: 36px;
    }
    .hs-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    .cookie-table,
    .payment-table {
        font-size: 12px;
    }
    .cookie-table th,
    .payment-table th,
    .cookie-table td,
    .payment-table td {
        padding: 10px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .process-steps .ps-item {
        padding: 16px 0;
        gap: 16px;
    }
    .ps-num {
        width: 36px;
        height: 30px;
        font-size: 10px;
    }
}
