/* Accessible dark shades from the logo's cyan, blue, violet, pink and gold palette. */
:root {
  --mtp-player: #126580;
  --mtp-club: #6941a5;
  --mtp-location: #96550b;
}
[data-brand-kind="player"],
:is(.cs-profile,.cs-account-title,.ux-player-cell,.h2h-person,.ch-side) strong,
:is(.ux-family-card,.ux-profile-banner,[data-entity="athlete"],[data-entity="participant"]) h2 {
  color: var(--mtp-player) !important;
}
[data-brand-kind="club"],
:is(.ux-directory-card,.mp-academy-card,[data-entity="organization"]) h2,
.organization-name,.org-name { color: var(--mtp-club) !important; }
[data-brand-kind="location"],.bc-location,.bc-location span,.event-location,.location-label,
.city-card h3,.city-grid h3 { color: var(--mtp-location) !important; }
[data-brand-sport] { color: var(--mtp-sport-ink,#126580) !important; font-weight: 650; }
[data-brand-sport-tone="badminton"] { --mtp-sport-ink: #08777c; --mtp-sport-wash: #e7f7f6; }
[data-brand-sport-tone="cricket"] { --mtp-sport-ink: #96550b; --mtp-sport-wash: #fff4df; }
[data-brand-sport-tone="football"],[data-brand-sport-tone="hockey"] { --mtp-sport-ink: #215fa8; --mtp-sport-wash: #edf4ff; }
[data-brand-sport-tone="tennis"],[data-brand-sport-tone="table-tennis"],[data-brand-sport-tone="yoga"] { --mtp-sport-ink: #6941a5; --mtp-sport-wash: #f3edff; }
[data-brand-sport-tone="athletics"],[data-brand-sport-tone="volleyball"] { --mtp-sport-ink: #a13070; --mtp-sport-wash: #fff0f8; }
[data-brand-sport-tone="swimming"] { --mtp-sport-ink: #126580; --mtp-sport-wash: #e9f7fc; }
[data-brand-sport-tone="kabaddi"],[data-brand-sport-tone="basketball"],[data-brand-sport-tone="boxing"] { --mtp-sport-ink: #a34521; --mtp-sport-wash: #fff1e9; }
[data-brand-sport-tone="karate"],[data-brand-sport-tone="chess"] { --mtp-sport-ink: #334d7c; --mtp-sport-wash: #edf1fb; }
.bc-sport:has([data-brand-sport]),.sport-badge:has([data-brand-sport]),.sport-pill:has([data-brand-sport]) { background: #f4f8fc; }
.cs-account-title>.cs-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
td[data-brand-kind="player"]>:is(a,strong),td[data-brand-kind="player"]>a strong { color: var(--mtp-player) !important; }
td[data-brand-kind="club"]>:is(a,strong),td[data-brand-kind="club"]>a strong { color: var(--mtp-club) !important; }
td[data-brand-kind="location"]>:is(a,strong) { color: var(--mtp-location) !important; }
/* Compact discovery banners. Media no longer stretches a short introduction into a large empty panel. */
body .bc-banner.bc-banner-video {
  min-height: 0 !important; height: auto !important;
  grid-template-columns: minmax(0,1.3fr) minmax(210px,.7fr);
  gap: 24px; padding: 24px 28px; margin-bottom: 24px;
}
body .bc-banner.bc-banner-video>div { padding: 0; min-height: 0; }
body .bc-banner.bc-banner-video .bc-banner-media { height: 176px; min-height: 0; padding: 0; align-self: center; }
body .bc-banner.bc-banner-video video { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; }
body .bc-banner.bc-banner-video h1 { margin: 8px 0 12px; font-size: clamp(26px,2.4vw,36px); line-height: 1.2; }
body .ux-directory-hero,body .ux-about-hero { min-height: 0; height: auto; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); margin-bottom: 24px; }
body .ux-directory-hero>img { height: 220px; min-height: 0; object-fit: cover; }
body .ux-about-hero>img { height: 240px; min-height: 0; object-fit: cover; }
body .ux-directory-hero>div,body .ux-about-hero>div { padding: 24px 28px; }
body .ux-directory-hero h2,body .ux-about-hero h2 { margin: 8px 0 12px; }
body .ux-about-hero .ux-about-lead { font-size: 16px !important; line-height: 1.65 !important; }
body .ux-about-hero .ux-about-lead p { margin: 0 0 14px; }
body :is(.bc-banner,.ux-directory-hero,.ux-about-hero) :is(h1,h2) { color: #102644 !important; }
@media (max-width: 700px) {
  body .bc-banner.bc-banner-video { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 20px; }
  body .bc-banner.bc-banner-video .bc-banner-media { height: 144px; }
  body .ux-directory-hero,body .ux-about-hero { grid-template-columns: minmax(0,1fr); }
  body .ux-directory-hero>img,body .ux-about-hero>img { height: 156px; }
  body .ux-directory-hero>div,body .ux-about-hero>div { padding: 20px; }
}

/* Legal & Policy Pages (Terms, Privacy, Cookies) */
.legal { max-width: 920px; margin-inline: auto; padding-block: 56px 88px; }
.legal-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 2px solid #e2e8f0; }
.legal-header h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.15; margin: 8px 0 16px; color: #081b38; }
.legal-meta-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0369a1; background: #e0f2fe; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.legal-meta-text { font-size: 14px; color: #64748b; margin: 0; }
.legal-toc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; margin-bottom: 40px; }
.legal-toc h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: #334155; margin: 0 0 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.legal-toc li { margin-bottom: 6px; font-size: 13px; }
.legal-toc a { color: #0284c7; text-decoration: none; font-weight: 500; }
.legal-toc a:hover { text-decoration: underline; color: #0369a1; }
.legal-section { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #f1f5f9; }
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 { font-size: clamp(20px, 2.4vw, 26px); color: #081b38; margin: 0 0 16px; }
.legal-section h3 { font-size: 17px; color: #1e293b; margin: 20px 0 10px; font-weight: 700; }
.legal-section p { font-size: 15px; line-height: 1.75; color: #334155; margin: 0 0 16px; }
.legal-section ul, .legal-section ol { margin: 0 0 20px 24px; padding: 0; color: #334155; }
.legal-section li { margin-bottom: 8px; line-height: 1.65; font-size: 15px; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.legal-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; background: white; }
.legal-table th, .legal-table td { padding: 14px 18px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.legal-table th { background: #f8fafc; font-weight: 700; color: #081b38; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: #fafbfc; }
.legal-table td strong { color: #0f172a; }
.legal-callout { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.legal-callout.warning { background: #fffbeb; border-left-color: #f59e0b; }
.legal-callout h4 { margin: 0 0 6px; font-size: 15px; color: #1e3a8a; }
.legal-callout p { margin: 0; font-size: 14px; color: #1e40af; line-height: 1.6; }
.legal-callout.warning h4 { color: #92400e; }
.legal-callout.warning p { color: #b45309; }
.legal-contact-card { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 24px; margin-top: 32px; }
.legal-contact-card h3 { font-size: 18px; margin: 0 0 12px; color: #081b38; }
.legal-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.legal-contact-item { font-size: 14px; color: #475569; }
.legal-contact-item strong { display: block; color: #081b38; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 700px) {
  .legal { padding-block: 36px 56px; }
  .legal-toc ol { columns: 1; }
  .legal-table th, .legal-table td { padding: 10px 12px; font-size: 13px; }
  .legal-contact-grid { grid-template-columns: 1fr; }
}

