/* Terms & Privacy pages - steel theme shared with the landing page */

:root {
    --bg-main: #050506;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(222, 226, 232, 0.22);
    --steel-50: #f4f5f7;
    --steel-200: #d3d6da;
    --steel-400: #9ca1a8;
    --ink: #0a0b0d;
    --steel-grad: linear-gradient(180deg, #f4f5f7 0%, #d3d6da 40%, #8e939a 78%, #6a6f77 100%);
    --steel-grad-text: linear-gradient(180deg, #ffffff 0%, #e3e5e8 45%, #a9aeb5 100%);
    --steel-grad-btn: linear-gradient(180deg, #f7f8f9 0%, #d9dce0 48%, #a8adb4 100%);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    line-height: 1.7;
    color: var(--steel-50);
    background:
        radial-gradient(1000px 600px at 10% -10%, rgba(214, 220, 228, 0.08), transparent 62%),
        linear-gradient(170deg, #040405 0%, #09090b 48%, #050506 100%);
    background-color: var(--bg-main);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 75%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 75%);
}

a {
    color: var(--steel-50);
}

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

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(1000px, calc(100% - 32px));
    margin: 28px auto 0;
    font-weight: 800;
    font-stretch: 112%;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.legal-brand img {
    height: 40px;
    width: auto;
}

.bg-overlay,
.particles-container {
    display: none;
}

/* Main panel */
.terms-container,
.privacy-container {
    position: relative;
    max-width: 1000px;
    margin: 28px auto 60px;
    padding: clamp(22px, 5vw, 56px);
    background: linear-gradient(160deg, rgba(22, 23, 26, 0.96), rgba(10, 11, 13, 0.97));
    border: 1px solid var(--line);
    clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

.terms-container::before,
.privacy-container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 245, 247, 0.4) 30%, transparent);
}

/* Header */
.terms-header,
.privacy-header {
    text-align: center;
    margin-bottom: 44px;
}

.terms-header h1,
.privacy-header h1 {
    display: inline-block;
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    text-shadow: none;
    color: var(--steel-50);
    background: var(--steel-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-header p,
.privacy-header p {
    margin: 0;
    color: var(--steel-400);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Sections */
.terms-section,
.privacy-section {
    margin-bottom: 28px;
    padding: clamp(18px, 3vw, 28px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-left: 2px solid rgba(244, 245, 247, 0.3);
}

.terms-section h2,
.privacy-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--steel-50);
}

.terms-section h2::after,
.privacy-section h2::before {
    content: none;
}

.section-icon {
    margin: 0;
    font-size: 1.05rem;
    color: var(--steel-200);
}

.terms-section p,
.terms-section ul,
.privacy-section p {
    color: #c9cdd2;
    font-size: 1rem;
    font-weight: 400;
}

.privacy-section strong {
    color: #ffffff;
    font-weight: 600;
}

.terms-section ul,
.privacy-section ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.terms-section ul li,
.privacy-section ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 6px;
    color: #c9cdd2;
    list-style: none;
}

.terms-section ul li::before,
.privacy-section ul li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--steel-grad);
    transform: rotate(45deg);
}

.legal-link {
    color: var(--steel-50);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Back button: chamfered steel plate */
.text-center,
.back-btn-container {
    text-align: center;
    margin-top: 36px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 0;
    padding: 12px 34px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    background: var(--steel-grad-btn);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.back-btn::before {
    content: none;
}

@media (hover: hover) and (pointer: fine) {
    .back-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .terms-container,
    .privacy-container {
        margin: 20px 12px 40px;
        clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    }

    .legal-brand {
        width: calc(100% - 24px);
        font-size: 1.3rem;
    }

    .legal-brand img {
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
