/* Nudg shared styles — nudg.gg */

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

:root {
    --bg: #FDF5EB;
    --surface: #F5EDE3;
    --surface-elevated: #EDE5D9;
    --accent: #D4704A;
    --accent-dark: #B85A38;
    --accent-secondary: #7B9E87;
    --gold: #E8A44A;
    --rose: #C4908A;
    --error: #C9594A;
    --text-primary: #2D2A26;
    --text-secondary: #7A756E;
    --text-tertiary: #A8A29E;
    --divider: #E8E2DA;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Nav — default for subpages */
nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Homepage overrides nav via inline styles */
.logo { font-size: 22px; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-left: 28px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Typography */
h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.effective-date { font-size: 14px; color: var(--text-tertiary); margin-bottom: 40px; }
.subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 40px; }
h2 { font-size: 20px; font-weight: 600; margin-top: 36px; margin-bottom: 12px; }
p { margin-bottom: 16px; font-size: 16px; color: var(--text-secondary); }
ul { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 8px; font-size: 16px; color: var(--text-secondary); }
li strong { color: var(--text-primary); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Footer */
footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid var(--divider);
    font-size: 14px;
    color: var(--text-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer .footer-links a { color: var(--text-tertiary); text-decoration: none; font-size: 13px; transition: color 0.2s; }
footer .footer-links a:hover { color: var(--accent); text-decoration: none; }

/* Tables (cookies page) */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
th, td { text-align: left; padding: 10px 12px; font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid var(--divider); }
th { font-weight: 600; color: var(--text-primary); background: var(--surface); }

/* Forms */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    margin-top: 16px;
}
label:first-of-type { margin-top: 0; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--divider);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}
textarea { resize: vertical; min-height: 80px; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A756E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Form sections */
.form-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px 28px;
    margin-top: 24px;
}
.form-section h2 { margin-top: 0; margin-bottom: 4px; }
.form-section .subtitle,
.form-section .form-subtitle { margin-bottom: 24px; font-size: 15px; color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary, .btn-export, .btn-submit { background: var(--accent); }
.btn-primary:hover:not(:disabled), .btn-export:hover:not(:disabled), .btn-submit:hover:not(:disabled) { background: var(--accent-dark); }
.btn-delete { background: var(--error); }
.btn-delete:hover:not(:disabled) { background: #B04A3E; }

/* Result messages */
.result-msg {
    display: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    margin-top: 16px;
}
.result-msg.success {
    display: block;
    background: rgba(123, 158, 135, 0.12);
    color: var(--accent-secondary);
}
.result-msg.error {
    display: block;
    background: rgba(201, 89, 74, 0.08);
    color: var(--error);
}

/* Info/warning boxes */
.info-box {
    background: rgba(123, 158, 135, 0.08);
    border: 1px solid rgba(123, 158, 135, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.info-box p { color: var(--accent-secondary); margin-bottom: 0; font-size: 15px; }

.warning-box {
    background: rgba(201, 89, 74, 0.08);
    border: 1px solid rgba(201, 89, 74, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.warning-box p { color: var(--error); margin-bottom: 0; font-size: 15px; }
.warning-box strong { color: var(--error); }

/* Crisis box (disclaimer page) */
.crisis-box {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}
.crisis-box p { margin-bottom: 8px; }
.crisis-box p:last-child { margin-bottom: 0; }
.crisis-box strong { color: var(--text-primary); }

/* Entrance animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 40px 20px; }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
}
@media (max-width: 600px) {
    nav { padding: 16px 16px 0; }
    .nav-links a { margin-left: 12px; font-size: 13px; }
    .container { padding: 32px 16px; }
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    p, li { font-size: 15px; }
    table { font-size: 14px; display: block; overflow-x: auto; }
    footer { flex-direction: column; text-align: center; gap: 12px; padding: 24px 16px; }
    footer .footer-links { justify-content: center; flex-wrap: wrap; }
    .btn, button[type="submit"] { width: 100%; min-height: 48px; font-size: 16px; }
    input[type="email"], input[type="text"], textarea, select { font-size: 16px; min-height: 48px; }
}
