/* ============================================================
   SureGut LLC — legal / long-form document theme
   Shared by terms.html, privacy.html, delete-account.html.
   Matches the dark aurora theme of the main site.
   ============================================================ */

:root {
    --primary: #0f172a;
    --accent: #0d9488;
    --accent-2: #2dd4bf;
    --accent-3: #38bdf8;
    --text: #cbd5e1;
    --text-dim: #94a3b8;
    --heading: #f1f5f9;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Animated aurora backdrop (matches landing page) */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, #15233f 0%, transparent 60%),
        var(--primary);
}
.bg-aurora .blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.bg-aurora .blob-1 { width: 460px; height: 460px; background: #0d9488; top: -140px; left: -100px; }
.bg-aurora .blob-2 { width: 480px; height: 480px; background: #2563eb; top: 30%; right: -160px; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-3); text-decoration: underline; }

.doc {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Back-to-home nav */
.doc-nav {
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--card-border);
}
.doc-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dim);
}
.doc-nav a:hover { color: var(--accent-2); text-decoration: none; }

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; color: var(--heading); line-height: 1.25; }
h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    letter-spacing: -1px;
    margin: 0 0 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}
h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
h3 { font-size: 1.08rem; margin-top: 26px; margin-bottom: 8px; color: var(--accent-2); }

p, li { color: var(--text); margin-bottom: 14px; }
strong { color: var(--heading); }
em { color: var(--accent-2); font-style: normal; }
ul { margin-bottom: 22px; padding-left: 22px; }
li::marker { color: var(--accent); }

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.88em;
    color: var(--accent-2);
}

.last-updated { color: var(--text-dim); font-style: italic; margin-bottom: 30px; }

/* Callouts */
.highlight, .warning {
    border-radius: 12px;
    padding: 18px 20px;
    margin: 24px 0;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}
.highlight {
    background: rgba(13, 148, 136, 0.10);
    border-left: 3px solid var(--accent-2);
}
.warning {
    background: rgba(220, 38, 38, 0.10);
    border-left: 3px solid #f87171;
    color: #fecaca;
}
.warning strong { color: #fecaca; }

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 24px 0;
    font-size: 0.94rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--card-border); }
th { background: rgba(255,255,255,0.05); color: var(--heading); font-weight: 600; }
td { color: var(--text); }
tr:last-child td { border-bottom: none; }

/* Forms (delete-account) */
form {
    margin-top: 26px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
}
label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
input[type="text"], input[type="email"], textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.04);
    color: var(--heading);
    transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
textarea { min-height: 96px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.checkbox-row input { margin-top: 5px; accent-color: var(--accent); }
.checkbox-row label { font-weight: 400; color: var(--text); margin: 0; }
button {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(220, 38, 38, 0.4); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
#status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; display: none; }
#status.success { background: rgba(22, 163, 74, 0.14); color: #86efac; border: 1px solid rgba(134, 239, 172, 0.3); display: block; }
#status.error { background: rgba(220, 38, 38, 0.14); color: #fca5a5; border: 1px solid rgba(252, 165, 165, 0.3); display: block; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
