/* Ottoman Research — V1-18D Terms & Conditions — Theme Patch 1.0.37 */
:root {
    --or-terms-ivory: #f6f2ea;
    --or-terms-paper: #fbf8f2;
    --or-terms-beige: #e7dfcf;
    --or-terms-border: #d8cdbb;
    --or-terms-green: #1e3b2e;
    --or-terms-burgundy: #7a1e2d;
    --or-terms-gold: #b88a4a;
    --or-terms-charcoal: #2b2b2b;
    --or-terms-muted: #675f56;
}

body.page-terms,
body.page-template-page-terms { background: var(--or-terms-ivory); }

.or-terms-v118d,
.or-terms-v118d * { box-sizing: border-box; }

.or-terms-v118d {
    overflow: clip;
    background: var(--or-terms-ivory);
    color: var(--or-terms-charcoal);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
}

.or-terms-v118d h1,
.or-terms-v118d h2,
.or-terms-v118d h3 {
    color: var(--or-terms-green);
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
}

.or-terms-v118d h1,
.or-terms-v118d h2,
.or-terms-v118d h3,
.or-terms-v118d p { margin-top: 0; }

.or-terms-v118d a {
    color: var(--or-terms-burgundy);
    text-underline-offset: 3px;
}

.or-terms-shell {
    width: min(1180px, calc(100% - 96px));
    margin-inline: auto;
}

.or-terms-breadcrumb-wrap {
    border-bottom: 1px solid rgba(216,205,187,.82);
    background: rgba(246,242,234,.97);
}

.or-terms-breadcrumb {
    width: min(1180px, calc(100% - 96px));
    margin: 0 auto;
    padding: 15px 0 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #70685f;
    font-size: 13px;
}

.or-terms-breadcrumb a { text-decoration: none; }

.or-terms-hero {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--or-terms-border);
    background: #f8f4ed;
}

.or-terms-hero-media {
    position: absolute;
    inset: 0 0 0 45%;
    overflow: hidden;
}

.or-terms-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #f8f4ed 0%, rgba(248,244,237,.93) 8%, rgba(248,244,237,.34) 31%, rgba(248,244,237,0) 55%);
    pointer-events: none;
}

.or-terms-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20,24,20,.02), rgba(30,15,10,.08));
    pointer-events: none;
}

.or-terms-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 52%;
    filter: saturate(.88) contrast(.98);
}

.or-terms-hero-inner {
    min-height: 390px;
    position: relative;
    z-index: 2;
    padding: 58px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    align-items: center;
}

.or-terms-hero-copy {
    padding: 4px 46px 4px 0;
    background: linear-gradient(90deg, rgba(248,244,237,.99) 0%, rgba(248,244,237,.97) 72%, rgba(248,244,237,0) 100%);
}

.or-terms-eyebrow {
    margin-bottom: 11px !important;
    color: var(--or-terms-burgundy);
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.or-terms-hero h1 {
    margin: 0 0 13px;
    font-size: clamp(48px, 5.7vw, 70px);
    line-height: 1.03;
}

.or-terms-subhead {
    margin: 0 0 12px;
    max-width: 530px;
    color: var(--or-terms-burgundy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.or-terms-lead {
    max-width: 540px;
    margin-bottom: 14px;
    color: #4d463f;
    font-size: 16px;
    line-height: 1.72;
}

.or-terms-updated { margin: 0; color: var(--or-terms-muted); font-size: 13px; }

.or-terms-summary {
    padding: 24px 0;
    border-bottom: 1px solid var(--or-terms-border);
    background: rgba(251,248,242,.78);
}

.or-terms-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border: 1px solid var(--or-terms-border);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.42);
}

.or-terms-summary-card {
    min-height: 122px;
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 13px;
    align-items: start;
    border-right: 1px solid var(--or-terms-border);
}

.or-terms-summary-card:last-child { border-right: 0; }
.or-terms-summary-card .or-terms-icon { width: 34px; height: 34px; }
.or-terms-summary-card strong { display: block; color: var(--or-terms-green); font-family: "Libre Baskerville", Georgia, serif; font-size: 14px; line-height: 1.35; }
.or-terms-summary-card span { display: block; margin-top: 5px; color: var(--or-terms-muted); font-size: 12px; line-height: 1.48; }

.or-terms-icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--or-terms-gold);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.or-terms-body { padding: 66px 0 78px; }

.or-terms-layout {
    display: grid;
    grid-template-columns: minmax(240px, 286px) minmax(0, 820px);
    gap: 50px;
    align-items: start;
    justify-content: center;
}

.or-terms-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 18px;
}

.or-terms-toc-card,
.or-terms-info-card {
    border: 1px solid var(--or-terms-border);
    border-radius: 6px;
    background: rgba(255,255,255,.44);
}

.or-terms-toc-card { padding: 25px 22px 17px; }

.or-terms-toc-title,
.or-terms-info-title {
    margin: 0 0 14px;
    color: var(--or-terms-green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 19px;
    font-weight: 700;
}

.or-terms-toc { display: grid; }

.or-terms-toc a {
    padding: 7px 0;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 3px;
    border-bottom: 1px solid rgba(216,205,187,.62);
    color: #514a43;
    font-size: 12px;
    line-height: 1.38;
    text-decoration: none;
}

.or-terms-toc a:last-child { border-bottom: 0; }
.or-terms-toc a span { color: var(--or-terms-gold); font-weight: 700; }
.or-terms-toc a:hover { color: var(--or-terms-burgundy); }

.or-terms-info-card { padding: 22px; }

.or-terms-info-row {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 11px;
    border-top: 1px solid rgba(216,205,187,.65);
}

.or-terms-info-row:first-of-type { border-top: 0; }
.or-terms-info-row .or-terms-icon { width: 27px; height: 27px; }
.or-terms-info-row strong { display: block; color: var(--or-terms-green); font-family: "Libre Baskerville", Georgia, serif; font-size: 13px; line-height: 1.35; }
.or-terms-info-row span { display: block; margin-top: 3px; color: var(--or-terms-muted); font-size: 11px; line-height: 1.48; overflow-wrap: anywhere; }

.or-terms-article { min-width: 0; max-width: 820px; }

.or-terms-section {
    scroll-margin-top: 120px;
    padding: 0 0 31px;
    margin: 0 0 33px;
    border-bottom: 1px solid rgba(216,205,187,.82);
}

.or-terms-section:last-child { margin-bottom: 0; }

.or-terms-section h2 {
    margin: 0 0 15px;
    font-size: clamp(27px, 3vw, 34px);
    line-height: 1.22;
}

.or-terms-section h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }

.or-terms-section p {
    margin-bottom: 15px;
    color: #49433d;
    text-wrap: pretty;
}

.or-terms-note-box {
    margin: 22px 0 4px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 16px;
    border: 1px solid var(--or-terms-border);
    border-left: 3px solid var(--or-terms-gold);
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(231,223,207,.28));
}

.or-terms-note-box .or-terms-icon { width: 36px; height: 36px; }
.or-terms-note-box strong { display: block; color: var(--or-terms-green); font-family: "Libre Baskerville", Georgia, serif; font-size: 15px; }
.or-terms-note-box span { display: block; margin-top: 5px; color: var(--or-terms-muted); font-size: 13px; line-height: 1.55; }

.or-terms-contact-section {
    padding: 30px;
    border: 1px solid var(--or-terms-border);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(231,223,207,.30));
}

.or-terms-contact-actions {
    margin: 21px 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.or-terms-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.or-terms-btn:hover { transform: translateY(-1px); }
.or-terms-btn-primary { color: #fff !important; background: var(--or-terms-burgundy); }
.or-terms-btn-primary:hover { background: #641725; }
.or-terms-btn-outline { color: var(--or-terms-burgundy) !important; border-color: rgba(122,30,45,.52); background: rgba(255,255,255,.56); }
.or-terms-btn-outline:hover { color: #fff !important; border-color: var(--or-terms-burgundy); background: var(--or-terms-burgundy); }
.or-terms-related-links { margin: 0 !important; color: var(--or-terms-muted) !important; font-size: 13px; }

.or-terms-cta { padding: 0 0 72px; }

.or-terms-cta-inner {
    min-height: 148px;
    padding: 26px 30px;
    display: grid;
    grid-template-columns: 78px minmax(0,1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--or-terms-border);
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(231,223,207,.30));
}

.or-terms-cta-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid var(--or-terms-border);
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

.or-terms-cta-inner h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.25; }
.or-terms-cta-inner p:not(.or-terms-eyebrow) { margin: 0; color: var(--or-terms-muted); font-size: 14px; }

@media (max-width: 1080px) {
    .or-terms-shell,
    .or-terms-breadcrumb { width: min(100% - 56px, 960px); }
    .or-terms-hero-media { inset: 0 0 0 41%; }
    .or-terms-hero-inner { grid-template-columns: minmax(0, 520px) 1fr; }
    .or-terms-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .or-terms-summary-card { border-bottom: 1px solid var(--or-terms-border); }
    .or-terms-summary-card:nth-child(2n) { border-right: 0; }
    .or-terms-summary-card:nth-last-child(-n+2) { border-bottom: 0; }
    .or-terms-layout { grid-template-columns: 230px minmax(0,1fr); gap: 34px; }
}

@media (max-width: 820px) {
    .or-terms-shell,
    .or-terms-breadcrumb { width: min(100% - 36px, 720px); }
    .or-terms-hero { min-height: 0; }
    .or-terms-hero-media { position: relative; inset: auto; height: 280px; }
    .or-terms-hero-media::before { background: linear-gradient(180deg, rgba(248,244,237,0) 55%, #f8f4ed 100%); }
    .or-terms-hero-inner { min-height: 0; margin-top: -34px; padding: 0 0 44px; display: block; }
    .or-terms-hero-copy { max-width: none; padding: 30px 28px 26px; border: 1px solid var(--or-terms-border); border-radius: 6px; background: rgba(248,244,237,.98); box-shadow: 0 14px 35px rgba(55,39,23,.07); }
    .or-terms-hero h1 { font-size: clamp(43px, 9vw, 62px); }
    .or-terms-layout { grid-template-columns: 1fr; gap: 28px; }
    .or-terms-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .or-terms-toc-card { max-height: 520px; overflow: auto; }
    .or-terms-cta-inner { grid-template-columns: 68px minmax(0,1fr); }
    .or-terms-cta-inner .or-terms-btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
    .or-terms-v118d { font-size: 15px; }
    .or-terms-shell,
    .or-terms-breadcrumb { width: min(100% - 28px, 560px); }
    .or-terms-breadcrumb { padding-block: 12px; font-size: 12px; }
    .or-terms-hero-media { height: 230px; }
    .or-terms-hero-inner { margin-top: -24px; padding-bottom: 34px; }
    .or-terms-hero-copy { padding: 25px 22px 22px; }
    .or-terms-hero h1 { font-size: clamp(38px, 12vw, 52px); }
    .or-terms-subhead { font-size: 17px; }
    .or-terms-lead { font-size: 15px; }
    .or-terms-summary { padding: 18px 0; }
    .or-terms-summary-grid { grid-template-columns: 1fr; }
    .or-terms-summary-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--or-terms-border) !important; }
    .or-terms-summary-card:last-child { border-bottom: 0 !important; }
    .or-terms-body { padding: 42px 0 56px; }
    .or-terms-sidebar { grid-template-columns: 1fr; }
    .or-terms-section { margin-bottom: 28px; padding-bottom: 27px; }
    .or-terms-section h2 { font-size: 27px; }
    .or-terms-note-box { grid-template-columns: 38px minmax(0,1fr); padding: 19px; }
    .or-terms-contact-section { padding: 23px 20px; }
    .or-terms-contact-actions { display: grid; }
    .or-terms-btn { width: 100%; }
    .or-terms-cta { padding-bottom: 52px; }
    .or-terms-cta-inner { padding: 24px 20px; grid-template-columns: 1fr; text-align: left; }
    .or-terms-cta-icon { width: 62px; height: 62px; }
    .or-terms-cta-inner .or-terms-btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .or-terms-btn { transition: none; }
}
