/* ==========================================================================
   terms.css  -  Terms & Conditions page (pages/terms.html)
   --------------------------------------------------------------------------
   E
   ========================================================================== */

.terms-page {
    min-height: calc(100vh / 0.9);   /* zoom shrinks 100vh by 10%, give it back */
    padding-top: 0%;
    background: var(--white);
    color: var(--black);
}

.terms-hero {
    min-height: 45vh;
    padding: 90px 8% 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(rgba(6, 5, 4, 0.78), rgba(6, 5, 4, 0.78)),
        url("../assets/images/autocare.jpg") center / cover fixed;
    color: var(--white);
}

.terms-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 18px;
    background: var(--black);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.terms-hero h1 {
    margin: 0 0 14px;
    font-family: var(--heading-font);
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 0.9;
    color: var(--white);
}

.terms-hero p {
    margin: 0 0 7px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.terms-date {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--copper);   /* was dark red: unreadable on the dark hero */
}

.terms-content {
    width: min(1000px, 88%);
    margin: 0 auto;
    padding: 70px 0 85px;
}

.terms-introduction {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.terms-introduction p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--black);
}

.terms-introduction strong {
    color: var(--dark-text);
    font-weight: 700;
}

.terms-section {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-top: 1px solid rgba(90, 64, 52, 0.18);
}

.terms-section:first-of-type {
    border-top: none;
}

.terms-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3px;
    font-family: var(--heading-font);
    font-size: 1.15rem;
    color: var(--dark-text);
}

.terms-section h2 {
    margin: 0 0 12px;
    font-family: var(--heading-font);
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.terms-section p {
    max-width: 800px;
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: #302925;
}

.terms-section ul {
    max-width: 800px;
    margin: 8px 0 15px;
    padding-left: 23px;
}

.terms-section li {
    margin-bottom: 4px;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    color: #302925;
}

.terms-section li::marker {
    color: var(--dark-text);
}

.terms-bottom {
    margin-top: 35px;
    padding-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(90, 64, 52, 0.18);
}

.terms-bottom h3 {
    margin-bottom: 5px;
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark-text);
}

.terms-bottom p {
    font-size: 0.95rem;
    color: var(--black);
}

.terms-home-button {
    margin-top: 18px;
}

.terms-legal-note {
    max-width: 650px;
    margin: 22px auto 0;
    font-size: 0.78rem !important;
    font-style: italic;
    line-height: 1.5;
    color: #776b64 !important;
}


/* ---- responsive ---- */

@media (max-width: 800px) {
    .terms-hero { min-height: 42vh; padding: 90px 6% 65px; }
    .terms-content { width: 90%; padding: 60px 0 70px; }
    .terms-section { grid-template-columns: 45px 1fr; gap: 18px; padding: 28px 0; }
    .terms-section p { font-size: 0.98rem; }
    .terms-section li { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .terms-page { padding-top: 70px; }
    .terms-hero { min-height: 42vh; padding: 80px 20px 60px; background-attachment: scroll; }
    .terms-label { padding: 6px 15px; font-size: 0.68rem; letter-spacing: 2.5px; }
    .terms-hero h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); line-height: 0.92; }
    .terms-hero p { font-size: 0.95rem; }
    .terms-date { font-size: 0.78rem; }
    .terms-content { padding: 55px 0 65px; }
    .terms-introduction { margin-bottom: 45px; }
    .terms-introduction p { font-size: 0.98rem; line-height: 1.6; }
    .terms-section { grid-template-columns: 1fr; gap: 6px; padding: 27px 0; }
    .terms-number { justify-content: flex-start; padding: 0; font-size: 1rem; }
    .terms-section h2 { margin-bottom: 12px; font-size: 1.75rem; }
    .terms-section p { font-size: 0.95rem; line-height: 1.6; }
    .terms-section ul { padding-left: 20px; }
    .terms-section li { font-size: 0.92rem; line-height: 1.5; }
    .terms-bottom { margin-top: 25px; padding-top: 35px; }
    .terms-bottom h3 { font-size: 1.75rem; }
    .terms-bottom p { font-size: 0.9rem; }
    .terms-home-button { width: 100%; padding: 10px 20px; }
}
/* Terms page — readable editorial legal layout */
body.terms-site {
    --black:#262821;
    --white:#FCFCFC;
    --off-white:#FCFCFC;
    --dark-text:#2D3B15;
    --copper:#2D3B15;
    --heading-font:"Century Gothic","Gabie Sans Serif",Arial,sans-serif;
    --body-font:"Century Gothic","Gabie Sans Serif",Arial,sans-serif;
    background:#FCFCFC;
    color:#262821;
}
.terms-page { min-height:calc(100vh / .9); padding-top:86px; background:#FCFCFC; color:#262821; }
.terms-hero {
    width:min(1100px,88%);
    min-height:0;
    margin:0 auto;
    padding:70px 0 48px;
    align-items:flex-start;
    text-align:left;
    background:none;
    color:#262821;
}
.terms-label { margin:0 0 18px; padding:0; background:none; color:#2D3B15; font:700 .68rem/1.4 var(--body-font); letter-spacing:.17em; }
.terms-hero h1 { margin:0; color:#262821; font:700 clamp(2.7rem,6vw,4.8rem)/1.02 var(--heading-font); letter-spacing:-.07em; }
.terms-hero p { margin:18px 0 6px; color:#696258; font-size:.9rem; }
.terms-date { color:#2D3B15; font:600 .73rem var(--body-font); letter-spacing:.05em; }
.terms-content { width:min(900px,88%); margin:0 auto; padding:22px 0 78px; }
.terms-introduction { max-width:none; margin:0 0 36px; padding:24px 28px; border-left:2px solid #2D3B15; background:#f1f2ed; text-align:left; }
.terms-introduction p { margin:0 0 10px; color:#4e5048; font-size:.86rem; line-height:1.8; }
.terms-introduction p:last-child { margin-bottom:0; }
.terms-introduction strong { color:#2D3B15; }
.terms-section { grid-template-columns:48px minmax(0,1fr); gap:20px; padding:25px 0; border-top:1px solid rgba(45,59,21,.17); }
.terms-number { justify-content:flex-start; color:#2D3B15; font:700 .76rem/1.6 var(--body-font); }
.terms-section h2 { margin:0 0 11px; color:#262821; font:700 clamp(1.25rem,2.2vw,1.55rem)/1.3 var(--heading-font); letter-spacing:-.035em; }
.terms-section p,.terms-section li { color:#55564f; font-size:.85rem; font-weight:400; line-height:1.8; }
.terms-section p { margin-bottom:10px; }
.terms-section ul { margin:8px 0 14px; padding-left:21px; }
.terms-section li { margin-bottom:4px; }
.terms-section li::marker { color:#2D3B15; }
.terms-bottom { margin-top:28px; padding:30px 28px; background:#f1f2ed; border:0; text-align:left; }
.terms-bottom h3 { color:#2D3B15; font:700 1.2rem var(--body-font); letter-spacing:.06em; }
.terms-bottom p { color:#696258; font-size:.82rem; }
.terms-home-button { min-height:42px; padding:11px 16px; border:1px solid #2D3B15; border-radius:2px; background:#2D3B15; color:#fff; font:700 .68rem var(--body-font); letter-spacing:.08em; box-shadow:none; }
.terms-home-button:hover { background:#3c4e1d; border-color:#3c4e1d; color:#fff; }
.terms-legal-note { max-width:720px; margin:24px 0 0; color:#77776f !important; font-size:.7rem !important; }
.terms-footer { padding:24px 6%; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px 28px; border-top:1px solid rgba(45,59,21,.15); background:#fff; }
.terms-footer-brand { color:#2D3B15; font:700 .9rem var(--body-font); letter-spacing:.09em; text-decoration:none; }
.terms-footer nav { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
.terms-footer nav a,.terms-footer small { color:#696258; font:400 .7rem var(--body-font); text-decoration:none; }
.terms-footer nav a:hover,.terms-footer nav a[aria-current="page"] { color:#2D3B15; }
@media(max-width:800px) {
    .terms-hero { width:90%; padding:54px 0 36px; }
    .terms-content { width:90%; padding:14px 0 58px; }
    .terms-section { grid-template-columns:38px minmax(0,1fr); gap:14px; }
}
@media(max-width:600px) {
    .terms-page { padding-top:70px; }
    .terms-hero { padding:42px 0 30px; }
    .terms-hero h1 { font-size:clamp(2.4rem,12vw,3.4rem); }
    .terms-content { padding-bottom:45px; }
    .terms-introduction { padding:19px; }
    .terms-section { grid-template-columns:1fr; gap:4px; padding:22px 0; }
    .terms-number { padding:0; }
    .terms-section h2 { font-size:1.25rem; }
    .terms-section p,.terms-section li { font-size:.82rem; }
    .terms-bottom { padding:23px 19px; }
    .terms-home-button { width:auto; }
    .terms-footer { align-items:flex-start; flex-direction:column; padding:22px 5%; }
    .terms-footer nav { gap:10px 15px; }
}

/* Terms page reference: olive heading panel and a readable document sheet */
.terms-page { min-height:calc(100vh / .9); padding-top:86px; background:#f1f2ed; color:#262821; }
.terms-hero {
    width:100%;
    min-height:0;
    margin:0;
    padding:60px max(6%,calc((100% - 1000px)/2)) 64px;
    align-items:flex-start;
    text-align:left;
    border-top:3px solid #2D3B15;
    background:#f1f2ed;
    color:#262821;
}
.terms-label { margin:0 0 14px; padding:0; background:none; color:#2D3B15; font:700 .65rem var(--body-font); letter-spacing:.16em; }
.terms-hero h1 { margin:0; color:#262821; font:700 clamp(2.7rem,5.5vw,4.6rem)/1 var(--heading-font); letter-spacing:-.075em; }
.terms-hero p { margin:15px 0 4px; color:#696258; font-size:.86rem; }
.terms-date { color:#2D3B15; font:600 .7rem var(--body-font); }
.terms-content {
    position:relative;
    width:min(900px,88%);
    margin:-25px auto 55px;
    padding:36px clamp(22px,5vw,56px) 48px;
    border:1px solid rgba(45,59,21,.12);
    background:#FCFCFC;
    box-shadow:0 14px 38px rgba(38,40,33,.06);
}
.terms-introduction { max-width:none; margin:0 0 28px; padding:20px 22px; border-left:2px solid #2D3B15; background:#f1f2ed; text-align:left; }
.terms-introduction p { margin:0 0 9px; color:#55564f; font-size:.82rem; line-height:1.8; }
.terms-introduction p:last-child { margin-bottom:0; }
.terms-introduction strong { color:#2D3B15; }
.terms-section { grid-template-columns:42px minmax(0,1fr); gap:17px; padding:22px 0; border-top:1px solid rgba(45,59,21,.14); }
.terms-section:first-of-type { border-top:0; }
.terms-number { justify-content:flex-start; padding-top:3px; color:#2D3B15; font:700 .7rem/1.6 var(--body-font); }
.terms-section h2 { margin:0 0 10px; color:#262821; font:700 clamp(1.2rem,2vw,1.5rem)/1.3 var(--heading-font); letter-spacing:-.035em; }
.terms-section p,.terms-section li { color:#55564f; font-size:.82rem; font-weight:400; line-height:1.8; }
.terms-section p { margin:0 0 10px; }
.terms-section ul { margin:6px 0 12px; padding-left:20px; }
.terms-section li { margin-bottom:4px; }
.terms-section li::marker { color:#2D3B15; }
.terms-bottom { margin-top:20px; padding:26px 22px; border:0; background:#f1f2ed; text-align:left; }
.terms-bottom h3 { margin:0 0 5px; color:#2D3B15; font:700 1rem var(--body-font); letter-spacing:.05em; }
.terms-bottom p { color:#696258; font-size:.8rem; }
.terms-legal-note { max-width:720px; margin:20px 0 0; color:#838379 !important; font-size:.68rem !important; }
@media(max-width:800px) {
    .terms-hero { padding:52px 5% 54px; }
    .terms-content { width:90%; margin-top:-20px; padding:28px 25px 38px; }
    .terms-section { grid-template-columns:36px minmax(0,1fr); gap:12px; padding:20px 0; }
}
@media(max-width:600px) {
    .terms-page { padding-top:70px; }
    .terms-hero { padding:40px 5% 50px; }
    .terms-hero h1 { font-size:clamp(2.35rem,11vw,3.4rem); }
    .terms-content { width:92%; margin-top:-18px; padding:24px 18px 30px; }
    .terms-introduction { padding:16px; }
    .terms-section { grid-template-columns:1fr; gap:3px; padding:18px 0; }
    .terms-number { padding:0; }
    .terms-section h2 { font-size:1.2rem; }
    .terms-section p,.terms-section li { font-size:.78rem; }
    .terms-bottom { padding:21px 16px; }
}
