/* ===== TERMS & CONDITIONS — PAGE‑SPECIFIC CSS ===== */

/* Table of contents anchor */
#toc {
    margin-top: -30px;
    font-size: 0.9em;
    font-style: italic;
}

/* Subtitle under header */
.subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6b4a;
}

/* Section dividers */
.toc-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5d8c7;
}

/* Page‑specific paragraph size override */
p {
    font-size: 1em; /* overrides global 1.15rem */
}

/* Page‑specific list spacing override */
li {
    margin: 0.2rem 0;
}

/* ===== Toggle System ===== */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.section-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 22px;
    background-color: #d6c7b5;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.section-toggle::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.section-toggle:checked {
    background-color: #8a6b4a;
}

.section-toggle:checked::before {
    transform: translateX(20px);
}

/* ===== Comprehension Response System ===== */
.response-field {
    display: none;
    margin-top: 1rem;
}

.char-guidance {
    display: block;
    font-size: 0.8rem;
    color: #7a6247;
    margin-bottom: 0.3rem;
}

.char-count {
    font-size: 0.8rem;
    color: #7a6247;
    margin-top: 0.3rem;
    text-align: right;
}

.response-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.user-response {
    width: 100%;
    min-height: 70px;
    padding: 0.6rem;
    border: 1px solid #cbb8a3;
    border-radius: 6px;
    background-color: #fffaf1;
    font-size: 0.95rem;
    resize: vertical;
}

/* Final submit button */
#final-submit {
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #8a6b4a;
    color: white;
    cursor: not-allowed;
    opacity: 0.5;
    transition: opacity 0.25s ease, cursor 0.25s ease;
}

#final-submit.enabled {
    cursor: pointer;
    opacity: 1;
}

/* ===== Identity Section ===== */
.identity-section {
    display: block;
    margin: 0 auto;
    width: 400px;
    padding: 0 25px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInIdentity 0.6s ease-out forwards;
}

.identity-section h3 {
    margin: 10px 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

@keyframes fadeInIdentity {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
}

.identity-section input[type="text"],
.identity-section input[type="email"] {
    width: 150px;
    padding: 12px 14px;
    margin-top: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.identity-section input[type="text"]:focus,
.identity-section input[type="email"]:focus {
    border-color: #6a8caf;
    box-shadow: 0 0 0 3px rgba(106, 140, 175, 0.25);
    outline: none;
}

.identity-section input.valid {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.identity-section input.invalid {
    border-color: #E53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

@media (max-width: 480px) {
.identity-section {
    width: 90%;
    padding: 0 2px;
}

.identity-section input[type="text"],
.identity-section input[type="email"] {
    width: 200px;
   }
main {
	width: 100%;
}
form {
	width: 99%;
	margin: 0 auto;
} 
}